#!/usr/bin/python
#Filename:referent.py

print 'Simple Assignment'

shoplist = ['apple','mango','carrot','banana']

mylist = shoplist #mylist is just another name pointing to the same object

del shoplist[0]
print 'shoplist  is ' , shoplist

print 'mylist is ' , mylist
#notic that both shoplist and mylist both print the same list without
#the 'apple' confirming that they point to the same object

print 'Coty bymake a full slice'

mylist  = shoplist[:] #make a copy by doing a full slice

del mylist[0] #remove first item

print 'shoplist is ' , shoplist
print 'mylist is ' , mylist



